#include "collectiontab.h"

CollectionTab::CollectionTab()
{
	_collection = NULL;
	_hasUnsavedChanges = false;
}

CollectionTab::~CollectionTab()
{
	if( _collection )
		delete _collection;
}

bool CollectionTab::hasUnsavedChanges() const
{
	return _hasUnsavedChanges;
}

void CollectionTab::setHasUnsavedChanges( bool value )
{
	_hasUnsavedChanges = value;
}

Collection* CollectionTab::collection()
{
	return _collection;
}

void CollectionTab::setCollection( Collection *c )
{
	if( _collection )
		delete _collection;
	_collection = c;
}
